package com.example.royalchef.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author: Administrator
 * created on: 2017/6/27 14:37
 * description:
 */

public class HomeInfo implements Parcelable {

    private String title;
    private String form;
    private String browse;
    private String comment;
    private int drawable;

    public HomeInfo() {
    }

    public HomeInfo(String title, String form, String browse, String comment, int drawable) {
        this.title = title;
        this.form = form;
        this.browse = browse;
        this.comment = comment;
        this.drawable = drawable;
    }

    protected HomeInfo(Parcel in) {
        title = in.readString();
        form = in.readString();
        browse = in.readString();
        comment = in.readString();
        drawable = in.readInt();
    }

    public static final Creator<HomeInfo> CREATOR = new Creator<HomeInfo>() {
        @Override
        public HomeInfo createFromParcel(Parcel in) {
            return new HomeInfo(in);
        }

        @Override
        public HomeInfo[] newArray(int size) {
            return new HomeInfo[size];
        }
    };

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getForm() {
        return form;
    }

    public void setForm(String form) {
        this.form = form;
    }

    public String getBrowse() {
        return browse;
    }

    public void setBrowse(String browse) {
        this.browse = browse;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getDrawable() {
        return drawable;
    }

    public void setDrawable(int drawable) {
        this.drawable = drawable;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(form);
        dest.writeString(browse);
        dest.writeString(comment);
        dest.writeInt(drawable);
    }
}
